import request from '@/utils/request'

// 查询测评问题选项列表
export function listQuestion_answer(query) {
  return request({
    url: '/system/question_answer/list',
    method: 'get',
    params: query
  })
}

// 查询测评问题选项详细
export function getQuestion_answer(questionId) {
  return request({
    url: '/system/question_answer/' + questionId,
    method: 'get'
  })
}

// 新增测评问题选项
export function addQuestion_answer(data) {
  return request({
    url: '/system/question_answer',
    method: 'post',
    data: data
  })
}

// 修改测评问题选项
export function updateQuestion_answer(data) {
  return request({
    url: '/system/question_answer',
    method: 'put',
    data: data
  })
}

// 删除测评问题选项
export function delQuestion_answer(questionId) {
  return request({
    url: '/system/question_answer/' + questionId,
    method: 'delete'
  })
}
